// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router/index.js'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './common/style/common.scss'
import mixin from './mixin/index'
import '../static/Ueditor/ueditor.config.js'
import '../static/Ueditor/ueditor.all.js'
import '../static/Ueditor/lang/zh-cn/zh-cn.js'
import '../static/Ueditor/ueditor.parse.js'
import axios from 'axios'
import 'babel-polyfill'

import { post, get, put, del } from './common/js/axios'
Vue.prototype.$post = post
Vue.prototype.$get = get
Vue.prototype.$put = put
Vue.prototype.$delete = del
Vue.prototype.showHome = { isShow: true }
Vue.prototype.baseUrl = 'http://112.17.112.137:8888'  // 线上

// Vue.prototype.baseUrl = 'http://192.168.1.25:8888';   // 本地

import App from './App'

// import Schart from 'vue-schart';
// Vue.component('Schart', Schart);

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.mixin(mixin)
/* eslint-disable no-new */

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
